<%@ page import="myoa.ProCompany" %>
<html>
<head>
    <meta name="layout" content="freshmade">
    <title>MyOA - Project - Add Task</title>
    <ckeditor:resources/>
</head>

<body>
<div id="content-wrapper">
    <div class="center-wrapper">
        <div class="content">
            <div id="main">
                <div class="post">
                    <div class="post-title">
                        <h1><tmpl:/project/link2project2 project="${task.project}"/></h1>
                        <g:message code="task.create"/>
                        <g:render template="/template/messageBar"/>
                    </div>

                    <div class="post-date">
                        <g:render template="/template/createdBy1"/>
                    </div>
                </div>

                <g:form action="update" method="post" id="${params.id}">
                    <g:hiddenField name="project.id" value="${task.project.id}"/>
                    <div id="myform">
                        <div class="field">
                            <div class="key"><g:message code='task.finishedDate'/></div>

                            <div class="value-datepicker">
                                <g:datePicker name="finishedDate" precision="day" relativeYears="[-2..2]"
                                              value="${task.finishedDate}"/>
                            </div>

                            <div class="hint">工作完成日期</div>

                            <div class="clear"></div>
                        </div>

                        <div class="field">
                            <div class="key"><g:message code='task.content'/></div>

                            <div class="value-editor">
                                <tmpl:/template/ckeditor2 name='content' content="${task.content}"/>
                            </div>

                            <div class="hint">工作汇报</div>

                            <div class="clear"></div>
                        </div>

                        <div class="buttonbar">
                            <input type="submit" class="button" value="Submit"/>
                            <input type="reset" class="button" value="Reset"/>
                        </div>
                    </div>
                </g:form>
            </div>
        </div>
    </div>
</div>
</body>
</html>

